package ${config.packageName}${module}<#noparse>.</#noparse>${config.po.packageName};

import java.util.Date;
import lombok.Data;
import lombok.experimental.FieldNameConstants;
import lombok.experimental.Accessors;
import com.swan.mybatis.anno.*;
import com.swan.mybatis.enums.IdGeneratorType;


/** ${table.comment}
* @author ${author}
* @since ${createDate}
*/
@Data
@FieldNameConstants
@Accessors(chain = true)
@Table(name = "${table.tableName}")
public class ${config.po.namePrefix!''}${table.className}${config.po.nameSuffix!''} <#if config.po.parentClass??>extends ${config.po.parentClass.simpleName}</#if>{
<#list columns as field>

    /** ${field.columnComment} */
<#if (field.isPk?string('true','false'))=="true">
    @Id<#if (field.autoIncrement?string('true','false'))=="true">(generatorType = IdGeneratorType.AUTO_INC)</#if>
</#if>
    private ${field.fieldType} ${field.fieldName};
</#list>

}
